<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('提现申请-通过')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-withdrawal-edit" th:object="${withdrawal}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">提现方式：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('tx_mode')}">
                    <div th:if="${type == 1 && dict.dictValue == '1' && dict.dictValue != '2' && dict.dictValue != '3' && dict.dictValue != '4'}">
                        <input type="radio" th:id="${'type_' + dict.dictCode}" name="type"
                               th:value="${dict.dictValue}"
                               th:field="*{type}">
                        <label th:for="${'type_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                    <div th:if="${type == 2 && dict.dictValue == '2' && dict.dictValue != '1' && dict.dictValue != '3' && dict.dictValue != '4'}">
                        <input type="radio" th:id="${'type_' + dict.dictCode}" name="type"
                               th:value="${dict.dictValue}"
                               th:field="*{type}">
                        <label th:for="${'type_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                    <div th:if="${type == 3 && dict.dictValue == '3' && dict.dictValue != '1' && dict.dictValue != '2' && dict.dictValue != '4'}">
                        <input type="radio" th:id="${'type_' + dict.dictCode}" name="type"
                               th:value="${dict.dictValue}"
                               th:field="*{type}">
                        <label th:for="${'type_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                    <div th:if="${dict.dictValue == '4' && dict.dictValue != '1' && dict.dictValue != '2' && dict.dictValue != '3'}">
                        <input type="radio" th:id="${'type_' + dict.dictCode}" name="type"
                               th:value="${dict.dictValue}"
                               th:field="*{type}">
                        <label th:for="${'type_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea name="remark" class="form-control"></textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/withdrawal";
    $("#form-withdrawal-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/adoptTx", $('#form-withdrawal-edit').serialize());
        }
    }
</script>
</body>
</html>